package cn.gemiman.daoyi.module.iot.controller.admin.equipmentmsg.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.gemiman.daoyi.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.gemiman.daoyi.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 设备消息分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class EquipmentMsgPageReqVO extends PageParam {

    @Schema(description = "设备编号", example = "23332")
    private Long equipmentId;

    @Schema(description = "设备名称")
    private String equipmentName;

    @Schema(description = "消息名称")
    private String msgName;

    @Schema(description = "消息键")
    private String msgKey;

    @Schema(description = "消息值")
    private String msgValue;

    @Schema(description = "报警状态", example = "0")
    private Integer alarmStatus;

    @Schema(description = "消息时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] msgTime;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "精华隆设备编号", example = "23332")
    private Long jhlEquipmentId;
}
